package cn.ywang.pattern.proxy.custom;

import java.lang.reflect.Method;

/**
 * 调用器
 *
 * @author BeatificWang
 * @date 2019/3/11 23:34
 */
public interface InvocationHandler {

	/**
	 * 执行被代理对象方法
	 *
	 * @param proxy
	 * @param method
	 * @param args
	 * @return
	 * @throws Throwable
	 */
	Object invoke(Object proxy, Method method, Object[] args)
			throws Throwable;
}
